//
//  TreeLookupController.h
//  MClient
//
//  Created by  wangfei on 10-4-14.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MCControl.h"


@interface TreeLookupController : MCTableViewController<UIActionSheetDelegate,UITabBarDelegate> {
	NSString *layoutId;
	NSMutableDictionary *treeData;
	NSMutableArray *treeNodes;
	NSMutableDictionary *treeNodePosition;
	NSMutableDictionary *fieldData;
	MCControl *valueField;
	NSMutableDictionary *field;	
	NSMutableArray *labelBufferArray;
	NSMutableArray *valueBufferArray;
	NSMutableArray *queryFilter;
	NSString *fieldName;
	NSMutableDictionary *datas;
	bool isRoot;
}

@property (nonatomic, retain) NSString *layoutId;
@property (nonatomic, retain) NSMutableDictionary *treeData;
@property (nonatomic, retain) NSMutableArray *treeNodes;
@property (nonatomic, retain) NSMutableDictionary *treeNodePosition;
@property (nonatomic, retain) NSMutableDictionary *fieldData;
@property (nonatomic, retain) MCControl *valueField;
@property (nonatomic, retain) NSMutableDictionary *field;
@property (nonatomic, retain) NSMutableArray *queryFilter;
@property (nonatomic, retain) NSString *fieldName;
@property (nonatomic, retain) NSMutableDictionary *datas;
@property (nonatomic) bool isRoot;

- (void)getDataFromServer;

@end
